package com.ggw.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ggw.annotion.Controller;
import com.ggw.annotion.Qualifier;
import com.ggw.annotion.RequestMapping;
import com.ggw.service.DongNaoService;

@Controller("dongNao")
public class DongNaoController {
	@Qualifier("dongNaoServiceImpl")
     private DongNaoService server;
	/**
	 * 插入数据的方法
	 * @param request
	 * @param response
	 * @param parm
	 * @return
	 */
	@RequestMapping("insert")
	public String insert(HttpServletRequest request,HttpServletResponse response,String parm) {
		server.insert(null);
		return null;
	}
	/**
	 * 删除数据的方法
	 * @param request
	 * @param response
	 * @param parm
	 * @return
	 */
	@RequestMapping("delete")
	public String delete(HttpServletRequest request,HttpServletResponse response,String parm) {
		//调用我们的Service层
		server.delete(null);
		return null;
	}
	/**
	 * 删除数据的方法
	 * @param request
	 * @param response
	 * @param parm
	 * @return
	 */
	@RequestMapping("update")
	public String update(HttpServletRequest request,HttpServletResponse response,String parm) {
		//调用我们的Service层
		server.update(null);
		return null;
	}
	/**
	 * 删除数据的方法
	 * @param request
	 * @param response
	 * @param parm
	 * @return
	 */
	@RequestMapping("select")
	public String select(HttpServletRequest request,HttpServletResponse response,String parm) {
		//调用我们的Service层
		server.select(null);
		return null;
	}
}
